package com.longrise.co.ui.mine.fragment;

import android.os.Bundle;
import android.widget.TextView;

import com.longrise.android.util.AppUtils;
import com.longrise.co.R;
import com.ly.common.base.BaseFragment;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * Created by luoyang on 2017-8-3.
 */

public class AboutFragment extends BaseFragment {


    @Bind(R.id.head_title)
    TextView headTitle;
    @Bind(R.id.about_version)
    TextView aboutVersion;

    @Override
    protected int getLayoutResource() {
        return R.layout.fg_about;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    protected void initView() {
        String versionText = AppUtils.getAppVersionName(getContext());

        setText(headTitle, "当前版本");
        setText(aboutVersion, "V" + versionText);
    }



    @OnClick(R.id.head_back)
    public void onViewClicked() {
        _mActivity.onBackPressed();
    }

    public static AboutFragment newInstance() {
        
        Bundle args = new Bundle();
        
        AboutFragment fragment = new AboutFragment();
        fragment.setArguments(args);
        return fragment;
    }
}
